package com.zhuandshao.interfaces;

/*
 * @Author: qianmingtian
 * @Date: 2020-06-04 08:55:53
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-07-08 09:27:38
 * @FilePath: \qianmingtian.github.io\code\java\com\zhuandshao\interfaces\Employee.java
 */
public class Employee implements Comparable<Employee> {
    int no;
    String name;

    public int getNo() {
        return no;
    }

    public void setNo(final int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public Employee(final int no, final String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public int compareTo(final Employee ee) {
        return Integer.compare(no, ee.no);
    }

}